package fon.rm2.client.wifi;

import android.net.wifi.ScanResult;

public class WiFiAP {

	private String SSID = "";
	private String BSSID = "";
	private String capabilities = "";
	private int frequency = 0;
	private int level = 0;
	
	public WiFiAP()
	{
		SSID = "";
		BSSID = "";
		capabilities = "";
		frequency = 0;
		level = 0;
	}
	
	public WiFiAP(String SSID, String BSSID, String capabilites, int frequency, int level)
	{
		this.SSID = SSID;
		this.BSSID = BSSID;
		this.capabilities = capabilites;
		this.frequency = frequency;
		this.level = level;
	}
	
	public WiFiAP(ScanResult result)
	{
		this.SSID = result.SSID;
		this.BSSID = result.BSSID;
		this.capabilities = result.capabilities;
		this.frequency = result.frequency;
		this.level = result.level;
	}
	
	public String getSSID() {
		return SSID;
	}
	public void setSSID(String sSID) {
		SSID = sSID;
	}
	public String getBSSID() {
		return BSSID;
	}
	public void setBSSID(String bSSID) {
		BSSID = bSSID;
	}
	public String getCapabilities() {
		return capabilities;
	}
	public void setCapabilities(String capabilities) {
		this.capabilities = capabilities;
	}
	public int getFrequency() {
		return frequency;
	}
	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	
	@Override
	public String toString() {
		return SSID + "\n" + this.capabilities;
	}
	
}
